//将租户信息放到缓存中
import Cookie from "js-cookie";
const key: string = import.meta.env.VITE_GLOB_TENANT_KEY;

export const setTenant = (value: string) => {
	Cookie.set(key, value);
};
//获取tenantId
export const getTenant = (): string | undefined => {
	return Cookie.get(key);
};
//删除token
export const delTenant = (): void => {
	Cookie.remove(key);
};
